<template>
  <div class="dongtai">
    <div class="triangle"></div>
    <div class="tabs">
      <a href="#" class="tabs-active">视频动态</a>
      <a href="#">直播</a>
      <a href="#">专栏</a>
    </div>
    <div class="dongtai-vedio">
      <!-- <div class="tips">暂时没有新动态了哦！</div> -->
      <div class="list-video">
        <p class="date">昨天</p>
        <a href="#" class="list-item" v-for="item in 8" :key="item">
          <div class="icon">
            <el-image :src="require('../../assets/icon.jpg')"></el-image>
          </div>
          <div class="content">
            <p class="title">哔哩哔哩英雄联盟赛事</p>
            <p class="c-txt">
              <span>昨天 19:56</span>
              <i>每天都想涨波粉丝嘻嘻洗洗</i>
            </p>
          </div>
        </a>
        <a href="#" class="play-all">播放全部</a>
      </div>
    </div>
  </div>
</template>
<style scoped>
.dongtai {
  display: none;
  position: absolute;
  top: 50px;
  left: -150px;
  width: 330px;
  height: 500px;
  background-color: #fff;
  z-index: 100;
  border-radius: 2px;
  color: #999;
}
.tabs {
  width: 100%;
  height: 42px;
  border-bottom: 1px solid #ccc;
  padding: 0 20px;
}
.tabs a {
  padding: 0 10px;
  display: inline-block;
  color: #999;
  height: 25px;
  line-height: 25px;
  margin-top: 8px;
}
.tabs-active {
  background-color: #00a1d6;
  color: #fff !important;
  border-radius: 30px 30px 30px 30px;
}
.dongtai-vedio {
  width: 100%;
  overflow: hidden auto;
  padding: 0 10px;
  height: 490px;
  background-color: #fff;
}
.tips {
  width: 100%;
  height: 100px;
  text-align: center;
  line-height: 100px;
  color: #999;
  font-size: 14px;
  padding: 0 10px;
}
.list-item {
  margin-bottom: 20px;
  display: flex;
  width: 100%;
  padding: 0 10px;
}
.icon {
  width: 100px;
}
.icon .el-image {
  width: 100px;
}
.content {
  width: 160px;
  color: #333;
  padding: 0 5px;
}
.c-txt {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: #999;
  padding: 0 10px;
}
.date {
  height: 40px;
  line-height: 40px;
  padding-left: 10px;
}
.title {
  width: 190px;
  padding-left: 10px;
  font-size: 14px;
  height: 35px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  padding-left: 10px;
}
.c-txt i {
  margin-left: 10px;
  font-style: normal;
}
.play-all {
  display: block;
  width: 270px;
  height: 30px;
  background-color: #e7e7e7;
  margin: 0 auto;
  text-align: center;
  color: #000;
  line-height: 30px;
  font-size: 14px;
  margin-bottom: 20px;
}
</style>
